package com.container.app.testclasses.configurations;

import com.container.app.MContainer;
import com.container.app.MContainerConfiguration;
import com.container.app.annotations.ImplementationTag;
import com.container.app.annotations.InstanceTag;
import com.container.app.testclasses.fileinfo.*;
import com.container.app.utilities.Pair;

/**
 * Created with IntelliJ IDEA.
 * User: Georgiana.Scarlat
 * Date: 7/12/12
 * Time: 12:12 PM
 */
public class InstancesImplementationsConfiguration extends MContainerConfiguration {

    protected InstancesImplementationsConfiguration(MContainer container) {
        super(container);
    }

    @Override
    public void configure() {
        addMapping(String.class, new Pair<Class, String>(InstanceTag.class, "basedir"), "/home/myFiles/");
        addMapping(Integer.class, new Pair<Class, String>(InstanceTag.class, "maxFileNo"), 130);
        addMapping(LuckyPick.class, null, LuckyPickImpl.class);
        addMapping(FileInfo.class, new Pair<Class, String>(ImplementationTag.class, "infoGetter2"), FileInfoTXT.class);
        addMapping(FileInfo.class, new Pair<Class, String>(ImplementationTag.class, "infoGetter1"), FileInfoXML.class);

    }
}
